<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="language" content="en" />

	<!-- blueprint CSS framework -->
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/screen.css" media="screen, projection" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/print.css" media="print" />
	<!--[if lt IE 8]>
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/ie.css" media="screen, projection" />
	<![endif]-->

	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/dropDownMain.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/form.css" />
	<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/javascript/jquery-1.7.1.min.js"></script>
	
	<title><?php echo CHtml::encode($this->pageTitle); ?></title>
</head>

<body>

<script type="text/javascript">
	/*定义图片位置*/
	var pic=new Array(	"<?php echo Yii::app()->request->baseUrl; ?>/images/index/headItem2.jpg", 
						"<?php echo Yii::app()->request->baseUrl; ?>/images/index/headItem3.jpg",
						"<?php echo Yii::app()->request->baseUrl; ?>/images/index/headItem4.jpg",
						"<?php echo Yii::app()->request->baseUrl; ?>/images/index/headItem5.jpg",
						"<?php echo Yii::app()->request->baseUrl; ?>/images/index/headItem1.jpg");
	var num = 0;
	$(document).ready(function(){
		/*计算位置*/
		var offset = $("#logo").offset();
		var myTop = offset.top;
		var myLeft = offset.left + 300;
		$("#headerpic").css({ top: myTop, left: myLeft });
		/*定时器,5秒执行一次showpic函数*/
		setInterval(showpic,5000);						
	});
	function showpic(){
		if(num>1){
			num = 0;
		}
		/*由于默认有一张图片，所以首先淡出，完成后触发后边的事件
		改变图片，然后淡入，达到切换的效果
		*/
		$("#showpic").fadeOut(1200,function(){
			/*更换目标图片*/
			$("#showpic").attr("src",pic[num]);
			$("#showpic").fadeIn(1200);
			num++;
			});
	}
</script>


<div class="container" id="page">

	<div id="header">
		<table width="100%">
			<tr>
				<td width="456px">
					<div id="logo"><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/LogoC2E2C_HK.PNG" width="556" height="111" /></div>
				</td>
				<td width="300px">
					<div id="headerpic"><img id="showpic" src="<?php echo Yii::app()->request->baseUrl; ?>/images/index/headItem1.jpg" width="300" height="111"  /></div>
				</td>
			</tr>
		</table>
	</div><!-- header -->

	<div id="dropdown">
		<?php 
		
		$this->widget('application.extensions.emenu.EMenu', array(
//		$this->widget('zii.widgets.CMenu',array(
			'activeCssClass'=>'active',
		  	'activateParents'=>true,
		  	'theme'=>'default',
			'items'=>array(
				array('label'=>'首页', 'url'=>array('/site/index')),
				array('label'=>'关于我们', 'url'=>array('/site/page', 'view'=>'about')),
		//		array('label'=>'Contact', 'url'=>array('/site/contact'), 'visible'=>!Yii::app()->user->isGuest),
		//		array('label'=>'Login', 'url'=>array('/site/login'), 'visible'=>Yii::app()->user->isGuest),
		//		array('label'=>'Logout ('.Yii::app()->user->name.')', 'url'=>array('/site/logout'), 'visible'=>!Yii::app()->user->isGuest)
				array('label'=>'C2E2C会员', 'url'=>array('/site/vip')),
				array('label'=>'核心服务板块', 'url'=>array('/service/index'), 'items'=>array(
						array('label'=>'城市交通整治与管理咨询', 'url'=>array('/service/manage')),
						array('label'=>'城市综合形象提升与宣传', 'url'=>array('/service/promote')),
						array('label'=>'城市资源开发与管理', 'url'=>array('/service/dev')),
						array('label'=>'城市人才引进与培训', 'url'=>array('/service/train')),			
					)
				),
				array('label'=>'百强县排名', 'url'=>array('/top100/rank'), 'items'=>array(
						array('label'=>'交通百强县', 'url'=>array('/top100/transport')),
						array('label'=>'文化百强县', 'url'=>array('/top100/culture')),
						array('label'=>'经济百强县', 'url'=>array('/top100/ecnomic')),
						array('label'=>'人才百强县', 'url'=>array('/top100/talent')),			
					)
				),
				array('label'=>'县域发展智囊团', 'url'=>array('/site/group')),
				array('label'=>'联系我们', 'url'=>array('/site/page', 'view'=>'contact')),
				array('label'=>Yii::app()->getModule('user')->t("登录"), 'url'=>Yii::app()->getModule('user')->loginUrl, 'visible'=>Yii::app()->user->isGuest),
				array('label'=>Yii::app()->getModule('user')->t("注册"), 'url'=>Yii::app()->getModule('user')->registrationUrl, 'visible'=>Yii::app()->user->isGuest),
		//		array('label'=>Yii::app()->getModule('user')->t("个人设置"), 'url'=>Yii::app()->getModule('user')->profileUrl, 'visible'=>!Yii::app()->user->isGuest),
				array('label'=>Yii::app()->getModule('user')->t("登出").' ('.Yii::app()->user->name.')', 'url'=>Yii::app()->getModule('user')->logoutUrl, 'visible'=>!Yii::app()->user->isGuest),				
			),
		)); ?>
	</div><!-- mainmenu -->
	<br/><br/>
	
	<?php 
	/*
	
	if(isset($this->breadcrumbs)):?>
			<?php $this->widget('zii.widgets.CBreadcrumbs', array(
				'links'=>$this->breadcrumbs,
			)); endif
			
			
		*/	
			?>	
	
	<?php echo $content; ?>

	<div class="clear"></div>

	<div id="footer">
		Copyright &copy; <?php echo date('Y'); ?> by C2E2C.<br/>
		All Rights Reserved.
	</div><!-- footer -->

</div><!-- page -->

</body>
</html>
